package com.kokuma.drawsprite.ftp.services.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.kokuma.drawsprite.ftp.dao.ICfgFtpDao;
import com.kokuma.drawsprite.ftp.dao.ICfgFtpPathDao;
import com.kokuma.drawsprite.ftp.models.CfgFtp;
import com.kokuma.drawsprite.ftp.models.CfgFtpPath;
import com.kokuma.drawsprite.ftp.services.interfaces.ICfgFtpPathServices;
import com.kokuma.drawsprite.ftp.services.interfaces.ICfgFtpServices;

@Service("cfgFtpPathServices")
public class CfgFtpPathImpl implements ICfgFtpPathServices{

	@Resource
	ICfgFtpPathDao cfgFtpPathDao;

	@Override
	@Cacheable(value = "cfgFtpPathCache")
	public List<CfgFtpPath> getCfgFtpPath(String ftpPathCode) {
		return cfgFtpPathDao.getCfgFtpPath(ftpPathCode);
	}
}
